package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EquipmentServiceBillingRulesMapper;
import com.ruoyi.system.domain.EquipmentServiceBillingRules;
import com.ruoyi.system.service.IEquipmentServiceBillingRulesService;

/**
 * 设备服务计费规则Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class EquipmentServiceBillingRulesServiceImpl implements IEquipmentServiceBillingRulesService
{
    @Autowired
    private EquipmentServiceBillingRulesMapper equipmentServiceBillingRulesMapper;

    /**
     * 通过id查询设备服务计费规则
     *
     * @param id 设备服务计费规则主键
     * @return 设备服务计费规则
     */
    @Override
    public EquipmentServiceBillingRules selectEquipmentServiceBillingRulesById(Long id)
    {
        return equipmentServiceBillingRulesMapper.selectEquipmentServiceBillingRulesById(id);
    }

    /**
     * 查询设备服务计费规则列表
     *
     * @param equipmentServiceBillingRules 设备服务计费规则
     * @return 设备服务计费规则
     */
    @Override
    public List<EquipmentServiceBillingRules> selectEquipmentServiceBillingRulesList(EquipmentServiceBillingRules equipmentServiceBillingRules)
    {
        return equipmentServiceBillingRulesMapper.selectEquipmentServiceBillingRulesList(equipmentServiceBillingRules);
    }

    /**
     * 新增设备服务计费规则
     *
     * @param equipmentServiceBillingRules 设备服务计费规则
     * @return 结果
     */
    @Override
    public int insertEquipmentServiceBillingRules(EquipmentServiceBillingRules equipmentServiceBillingRules)
    {
        return equipmentServiceBillingRulesMapper.insertEquipmentServiceBillingRules(equipmentServiceBillingRules);
    }

    /**
     * 修改设备服务计费规则
     *
     * @param equipmentServiceBillingRules 设备服务计费规则
     * @return 结果
     */
    @Override
    public int updateEquipmentServiceBillingRules(EquipmentServiceBillingRules equipmentServiceBillingRules)
    {
        return equipmentServiceBillingRulesMapper.updateEquipmentServiceBillingRules(equipmentServiceBillingRules);
    }

    /**
     * 通过id批量删除设备服务计费规则信息
     *
     * @param ids 需要删除的设备服务计费规则主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingRulesByIds(Long[] ids)
    {
        return equipmentServiceBillingRulesMapper.deleteEquipmentServiceBillingRulesByIds(ids);
    }

    /**
     * 通过id删除设备服务计费规则信息
     *
     * @param id 设备服务计费规则主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingRulesById(Long id)
    {
        return equipmentServiceBillingRulesMapper.deleteEquipmentServiceBillingRulesById(id);
    }
}
